<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" id="vp" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<title>童圈</title>

		<link href="../../css/mui.min.css" rel="stylesheet" type="text/css">
		<link href="../../css/style.css" rel="stylesheet" type="text/css">
		<style>
			.mui-content .mui-pull-top-pocket {
				top:0px!important;
			} 
		</style>
	</head>

	<body>
		<div class="mui-content">
			
		</div> 
		<script src="../../js/mui.js"></script>
	
		<script>
			mui.init({
				gestureConfig: {
					doubletap: true,
					longtap: true, //默认为false 
				},
				subpages: [{  
					url: 'momentsrefresh.html',
					id: 'momentsrefresh',
					styles: {  
						top: '0', 
						bottom: '0'
					}
				}]
			});
		
	
			
			

			
			
			//处理返回键
			var backButtonPress = 0;
			var old_back = mui.back;
			mui.back = function(event) {
				var adWebview = plus.webview.getWebviewById('ad_detail');
				if(adWebview) {
					adWebview.close();
				} else {
					backButtonPress++;
					if(backButtonPress > 1) {
						plus.runtime.quit();
					} else {
						plus.nativeUI.toast('再按一次退出应用');
					}
					setTimeout(function() {
						backButtonPress = 0;
					}, 1000);
					return false;
				}
			};
		</script>
	</body>

</html>